//
//  RIODiscoverController.swift
//  RIOWeiBo
//
//  Created by Rio on 16/4/7.
//  Copyright © 2016年 RIO. All rights reserved.
//

import UIKit

class RIODiscoverController: UITableViewController {
    
        /// 加载searchview
    let searchView = RIODiscoverSeachView.loadSeachView()
    

    override func viewDidLoad() {
        super.viewDidLoad()
        
        setTopBar()
    }
    
    private func setTopBar(){
        
        navigationItem.titleView = searchView
        
    }
    
    
    /**
     当滑动视图时,取消搜索收回键盘
     
     */
    override func scrollViewDidScroll(scrollView: UIScrollView) {
    
        searchView.cancelBtnDidClick()
    }


}
